<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenMesh: OpenMesh::IO::_STLWriter_ Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="logo_align.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="rwth_vci_rgb.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenMesh
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('a02105.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="a02102.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">OpenMesh::IO::_STLWriter_ Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implementation of the STL format writer.  
 <a href="a02105.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00305_source.html">OpenMesh/Core/IO/writer/STLWriter.hh</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for OpenMesh::IO::_STLWriter_:</div>
<div class="dyncontent">
<div class="center"><img src="a02104.png" border="0" usemap="#OpenMesh_1_1IO_1_1__STLWriter___inherit__map" alt="Inheritance graph"/></div>
<map name="OpenMesh_1_1IO_1_1__STLWriter___inherit__map" id="OpenMesh_1_1IO_1_1__STLWriter___inherit__map">
<area shape="rect" id="node2" href="a02081.html" title="Base class for all writer modules. " alt="" coords="9,5,189,32"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for OpenMesh::IO::_STLWriter_:</div>
<div class="dyncontent">
<div class="center"><img src="a02103.png" border="0" usemap="#OpenMesh_1_1IO_1_1__STLWriter___coll__map" alt="Collaboration graph"/></div>
<map name="OpenMesh_1_1IO_1_1__STLWriter___coll__map" id="OpenMesh_1_1IO_1_1__STLWriter___coll__map">
<area shape="rect" id="node2" href="a02081.html" title="Base class for all writer modules. " alt="" coords="9,5,189,32"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a340821184c3f578745d5739def5af9e2"><td class="memItemLeft" align="right" valign="top"><a id="a340821184c3f578745d5739def5af9e2"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#a340821184c3f578745d5739def5af9e2">~_STLWriter_</a> ()</td></tr>
<tr class="memdesc:a340821184c3f578745d5739def5af9e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a340821184c3f578745d5739def5af9e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad657780d7175868dc2daff02b11206da"><td class="memItemLeft" align="right" valign="top"><a id="ad657780d7175868dc2daff02b11206da"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#ad657780d7175868dc2daff02b11206da">get_description</a> () const override</td></tr>
<tr class="memdesc:ad657780d7175868dc2daff02b11206da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return short description of the supported file format. <br /></td></tr>
<tr class="separator:ad657780d7175868dc2daff02b11206da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adaa2445979e98212fae149305efca270"><td class="memItemLeft" align="right" valign="top"><a id="adaa2445979e98212fae149305efca270"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#adaa2445979e98212fae149305efca270">get_extensions</a> () const override</td></tr>
<tr class="memdesc:adaa2445979e98212fae149305efca270"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return file format's extension. <br /></td></tr>
<tr class="separator:adaa2445979e98212fae149305efca270"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac807dd2c1d88932d59161faa9daacf9f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#ac807dd2c1d88932d59161faa9daacf9f">write</a> (const std::string &amp;, <a class="el" href="a02009.html">BaseExporter</a> &amp;, <a class="el" href="a02029.html">Options</a>, std::streamsize _precision=6) const override</td></tr>
<tr class="memdesc:ac807dd2c1d88932d59161faa9daacf9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to a file.  <a href="#ac807dd2c1d88932d59161faa9daacf9f">More...</a><br /></td></tr>
<tr class="separator:ac807dd2c1d88932d59161faa9daacf9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f2014f643f18632b1e2680c1aa1307"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#af1f2014f643f18632b1e2680c1aa1307">write</a> (std::ostream &amp;, <a class="el" href="a02009.html">BaseExporter</a> &amp;, <a class="el" href="a02029.html">Options</a>, std::streamsize _precision=6) const override</td></tr>
<tr class="memdesc:af1f2014f643f18632b1e2680c1aa1307"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to a std::ostream.  <a href="#af1f2014f643f18632b1e2680c1aa1307">More...</a><br /></td></tr>
<tr class="separator:af1f2014f643f18632b1e2680c1aa1307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93339fa9d3ecd7b7d6dcc31a0ed67d9e"><td class="memItemLeft" align="right" valign="top"><a id="a93339fa9d3ecd7b7d6dcc31a0ed67d9e"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02105.html#a93339fa9d3ecd7b7d6dcc31a0ed67d9e">binary_size</a> (<a class="el" href="a02009.html">BaseExporter</a> &amp;, <a class="el" href="a02029.html">Options</a>) const override</td></tr>
<tr class="memdesc:a93339fa9d3ecd7b7d6dcc31a0ed67d9e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns expected size of file if binary format is supported else 0. <br /></td></tr>
<tr class="separator:a93339fa9d3ecd7b7d6dcc31a0ed67d9e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_a02081"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_a02081')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="a02081.html">OpenMesh::IO::BaseWriter</a></td></tr>
<tr class="memitem:a7f287d4cf768bf1a0ee08ad68286fa1c inherit pub_methods_a02081"><td class="memItemLeft" align="right" valign="top"><a id="a7f287d4cf768bf1a0ee08ad68286fa1c"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02081.html#a7f287d4cf768bf1a0ee08ad68286fa1c">~BaseWriter</a> ()</td></tr>
<tr class="memdesc:a7f287d4cf768bf1a0ee08ad68286fa1c inherit pub_methods_a02081"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a7f287d4cf768bf1a0ee08ad68286fa1c inherit pub_methods_a02081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e250c7543862441dc6ac877b6f44ef9 inherit pub_methods_a02081"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a02081.html#a0e250c7543862441dc6ac877b6f44ef9">can_u_write</a> (const std::string &amp;_filename) const</td></tr>
<tr class="memdesc:a0e250c7543862441dc6ac877b6f44ef9 inherit pub_methods_a02081"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if writer can write _filename (checks extension).  <a href="a02081.html#a0e250c7543862441dc6ac877b6f44ef9">More...</a><br /></td></tr>
<tr class="separator:a0e250c7543862441dc6ac877b6f44ef9 inherit pub_methods_a02081"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_a02081"><td colspan="2" onclick="javascript:toggleInherit('pub_types_a02081')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="a02081.html">OpenMesh::IO::BaseWriter</a></td></tr>
<tr class="memitem:a64e0d2f73712d56ed5f911c39664a641 inherit pub_types_a02081"><td class="memItemLeft" align="right" valign="top"><a id="a64e0d2f73712d56ed5f911c39664a641"></a>
typedef unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>Option</b></td></tr>
<tr class="separator:a64e0d2f73712d56ed5f911c39664a641 inherit pub_types_a02081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_methods_a02081"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_a02081')"><img src="closed.png" alt="-"/>&#160;Protected Member Functions inherited from <a class="el" href="a02081.html">OpenMesh::IO::BaseWriter</a></td></tr>
<tr class="memitem:a20c3f4fd0d84ab59b1ee00494a62ffd0 inherit pro_methods_a02081"><td class="memItemLeft" align="right" valign="top"><a id="a20c3f4fd0d84ab59b1ee00494a62ffd0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>check</b> (<a class="el" href="a02009.html">BaseExporter</a> &amp;_be, <a class="el" href="a02029.html">Options</a> _opt) const</td></tr>
<tr class="separator:a20c3f4fd0d84ab59b1ee00494a62ffd0 inherit pro_methods_a02081"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementation of the STL format writer. </p>
<p>This class is singleton'ed by <a class="el" href="a02617.html" title="A simple singleton template. ">SingletonT</a> to STLWriter. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ac807dd2c1d88932d59161faa9daacf9f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac807dd2c1d88932d59161faa9daacf9f">&#9670;&nbsp;</a></span>write() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_STLWriter_::write </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>_filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02009.html">BaseExporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_be</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a>&#160;</td>
          <td class="paramname"><em>_opt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::streamsize&#160;</td>
          <td class="paramname"><em>_precision</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write to a file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_filename</td><td>write to file with the given filename </td></tr>
    <tr><td class="paramname">_be</td><td><a class="el" href="a02009.html" title="Base class for exporter modules. ">BaseExporter</a>, which specifies the data source </td></tr>
    <tr><td class="paramname">_opt</td><td>writing options </td></tr>
    <tr><td class="paramname">_precision</td><td>can be used to specify the precision of the floating point notation. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="a02081.html#a7c0818a63926bdb439044a8f4c038d85">OpenMesh::IO::BaseWriter</a>.</p>

</div>
</div>
<a id="af1f2014f643f18632b1e2680c1aa1307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f2014f643f18632b1e2680c1aa1307">&#9670;&nbsp;</a></span>write() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool OpenMesh::IO::_STLWriter_::write </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>_os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02009.html">BaseExporter</a> &amp;&#160;</td>
          <td class="paramname"><em>_be</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a02029.html">Options</a>&#160;</td>
          <td class="paramname"><em>_opt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::streamsize&#160;</td>
          <td class="paramname"><em>_precision</em> = <code>6</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write to a std::ostream. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">_os</td><td>write to std::ostream </td></tr>
    <tr><td class="paramname">_be</td><td><a class="el" href="a02009.html" title="Base class for exporter modules. ">BaseExporter</a>, which specifies the data source </td></tr>
    <tr><td class="paramname">_opt</td><td>writing options </td></tr>
    <tr><td class="paramname">_precision</td><td>can be used to specify the precision of the floating point notation. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="a02081.html#ae0aa2050e93f96d71ff70ce788a76a94">OpenMesh::IO::BaseWriter</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>OpenMesh/Core/IO/writer/<a class="el" href="a00305_source.html">STLWriter.hh</a></li>
<li>OpenMesh/Core/IO/writer/STLWriter.cc</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<hr>
<address>
<small>
<a href="http://www.rwth-graphics.de" style="text-decoration:none;">
</a>
Project <b>OpenMesh</b>, 
&copy;&nbsp; Computer Graphics Group, RWTH Aachen.
Documentation generated using 
<a class="el" href="http://www.doxygen.org/index.html">
<b>doxygen</b>
</a>.
</small>
</address>
</body>
</html>
